package com.zy.web.demo.duoxiancheng.demo10;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/3 15:04
 */
public class Test10 {

    public static void main(String[] args) {
        Sub sub = new Sub();
        Thread10A thread10A = new Thread10A(sub);
        thread10A.setName("A");
        thread10A.start();
        Thread10B thread10B = new Thread10B(sub);
        thread10B.setName("B");
        thread10B.start();
    }

}
